package moderl

import "gorm.io/gorm"

type Ppt struct {
	gorm.Model
	User     string `gorm:"type:varchar(30)" json:"user"`
	Password string `gorm:"type:varchar(30)" json:"password"`
	Emil     string `gorm:"varchar(30)" json:"emil"`
}
type Movie struct {
	gorm.Model
	Title           string `gorm:"type:varchar(30)" json:"title"`
	Content         string `gorm:"type:varchar(30)" json:"content"`
	CollectionCount int    `gorm:"type:varchar(30)" json:"collection"`
	LikeCount       int    `gorm:"type:varchar(30)" json:"like_count"`
	PptID           int    `gorm:"type:int" json:"ppt_id"`
	Ppt             Ppt    `gorm:"foreignKey:PptID" json:"ppt"`
	FlId            int    `gorm:"type:int" json:"fl_id"`
	Fl              Fl     `gorm:"foreignKey:FlId" json:"fl"`
}
type Fl struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)" json:"name"`
}
